package com.aspose.cells;

class zajn {
   zoz a = null;
   private zpa b;
   private String c;
   private zbmw d;
   private zbmt e;
   private String f;
   private static final com.aspose.cells.b.c.a.za g = new com.aspose.cells.b.c.a.za(new String[]{"name", "cache", "caption", "startItem", "columnCount", "showCaption", "lockedPosition", "style", "rowHeight", "level"});

   zajn(zoz var1, zpa var2, String var3, String var4) {
      this.a = var1;
      this.b = var2;
      this.c = var3;
      this.d = this.b.d.d();
      this.f = var4;
   }

   void a(zcfw var1) throws Exception {
      this.d(var1);
      if (!var1.n()) {
         if ("slicers".equals(var1.p()) && var1.r() == 1) {
            this.c(var1);
         }

         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if ("slicer".equals(var1.p()) && var1.r() == 1) {
               this.b(var1);
            }
         }

      }
   }

   private void b(zcfw var1) throws Exception {
      this.e = new zbmt(this.d);
      this.e.a = this.f;
      this.d.a(this.e);
      if (var1.m()) {
         while(true) {
            if (!var1.l()) {
               var1.k();
               break;
            }

            switch(g.a(var1.p())) {
            case 0:
               this.e.b(var1.s());
               break;
            case 1:
               this.e.c(var1.s());
               break;
            case 2:
               this.e.d(var1.s());
               break;
            case 3:
               this.e.a(zase.C(var1.s()));
               break;
            case 4:
               this.e.f = zase.C(var1.s());
               break;
            case 5:
               if ("0".equals(var1.s())) {
                  this.e.a(false);
               } else {
                  this.e.a(true);
               }
               break;
            case 6:
               if ("0".equals(var1.s())) {
                  this.e.b(false);
               } else {
                  this.e.b(true);
               }
               break;
            case 7:
               this.e.a(var1.s());
               break;
            case 8:
               this.e.i = zase.C(var1.s());
               break;
            case 9:
               this.e.m = zase.C(var1.s());
            }
         }
      }

      this.b.o.put(this.e.b, this.e.p);
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if ("extLst".equals(var1.p()) && var1.r() == 1) {
                  if (!var1.n()) {
                     this.e.l = var1.u();
                  }
               } else {
                  var1.a();
               }
            }

            var1.h();
            return;
         }
      }
   }

   private void c(zcfw var1) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.k();
      }
   }

   private void d(zcfw var1) throws Exception {
      var1.j();
      if (var1.r() != 1 || !"slicers".equals(var1.p())) {
         throw new IllegalStateException("slicers root element eror");
      }
   }
}
